package demo7;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")//多例，每次获取时都会创建一个新的对象
public class DBConnect {
}
